@extends('plugin.hostserver.front.layout.base')
@section('content')
    <div id="pageTitle" class="HeaderAdjust" data-bg-src=""
         style="background-image: url(&quot;&quot;); margin-top: 220px;">
        <div class="container">
            <div class="row">
                <div class="col-md-6 col-md-offset-3">
                    <div class="section-title">
                        <h2>{{ $title }}</h2>
                    </div>

                </div>
            </div>
        </div>
    </div>
    <div id="login">
        <div class="container">
            <form method="post" class="loginForm" id="loginForm" novalidate="novalidate" action="{{  plugin_route('hostserver.auth') }}">

                @csrf
                <input type="hidden" name="type" value="forget">

                <div class="form-group @error('email') has-error @enderror">
                    <label for="email">邮箱 *</label>
                    <input type="email" name="email" class="form-control sendEmailVal" id="email" placeholder="邮箱">

                    @error('email')
                    <span class="help-block">{{ $message }}</span>
                    @enderror
                </div>
                <div class="form-group">
                    <a class="btn btn-danger sendEmail" style="margin-top: 10px;">获取验证码</a>
                </div>

                <div class="form-group @error('code') has-error @enderror">
                    <label for="code">验证码 *</label>
                    <input type="text" name="code" class="form-control" id="code" placeholder="验证码">
                    @error('code')
                    <span class="help-block">{{ $message }}</span>
                    @enderror
                </div>
                <div class="form-group @error('password') has-error @enderror">
                    <label for="password">新密码 *</label>
                    <input type="password" name="password" class="form-control" id="password" placeholder="密码">
                    @error('password')
                    <span class="help-block">{{ $message }}</span>
                    @enderror
                </div>
                <div class="form-group  @error('password_confirmation') has-error @enderror">
                    <label for="password_confirmation">确认密码 *</label>
                    <input type="password" name="password_confirmation" class="form-control" id="password_confirmation"
                           placeholder="确认密码">
                    @error('password_confirmation')
                    <span class="help-block">{{ $message }}</span>
                    @enderror
                </div>

                <p class="help-block clearfix">

                    <button class="btn submit-button" type="submit" id="regist">立即重设</button>
                    <a href="{{ plugin_route('hostserver.login') }}"><i class="fa fa-fw fa-key"></i>已有帐号 ?</a>
                </p>

            </form>
        </div>
    </div>
@endsection